<?php

class DashboardController extends AppController {
    
    // define controller name
    var $name = 'Dashboard';
    
    // define list of models to use 
    var $uses = array('User','Right','Role');
    
    // set controller domain
    var $controllerDomain = 'dashboard';
    
    public function beforeFilter() {
        parent::beforeFilter();
        
    }
    
    public function isAuthorized() {
        
        $valid = parent::isAuthorized();
        if ($valid == false) {
            return false;
        }
        
        return true;
    }
    
    public function index() {
        
    }
    
}

?>
